package com.macro.mall.service.impl;

import com.github.pagehelper.PageHelper;
import com.macro.mall.dao.UmsMemberReceiveAddressDao;
import com.macro.mall.dto.UmsMemberAddressAddUsername;
import com.macro.mall.dto.UmsMemberAddressQueryParam;
import com.macro.mall.service.UmsMemberReceiveAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 地址管理Service实现类
 * Created by P7 on 2021/4/21.
 */
@Service("UmsMemberReceiveAddressService")
public class UmsMemberReceiveAddressServiceImpl implements UmsMemberReceiveAddressService {
    @Autowired
    private UmsMemberReceiveAddressDao addressDao;

    @Override
    public List<UmsMemberAddressAddUsername> list(UmsMemberAddressQueryParam queryParam, Integer pageSize, Integer pageNum) {
        PageHelper.startPage(pageNum, pageSize);
        return addressDao.getList(queryParam);
    }

}
